﻿<%@ Page Language="C#" AutoEventWireup="true" CodeBehind="PromotionalList.aspx.cs" Inherits="JzSport.WebApp.Promotional.PromotionalList" %>

<!DOCTYPE html>

<html xmlns="http://www.w3.org/1999/xhtml">
<head runat="server">
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title></title>
    <style>
        body, div, p, span, ul, li, dl, dt, dd, a, ol, input, img, h1, h2, h3, h4 {
            padding: 0;
            margin: 0;
            list-style: none;
            border: 0;
        }

        a {
            text-decoration: none;
        }

        body {
            margin: 5px;
            font-family: "Helvetica Neue", Helvetica, Arial,sans-serif;
            background: #fff;
        }


        .content {
            margin-left: 1%;
            margin-right: 1%;
            font-size: 12px;
            color: #454545;
            line-height: 24px;
            margin-top: 10px;
        }



        .apply {
            margin: 0 auto;
            display: block;
            width: 50px;
            line-height: 20px;
            background-color: orange;
            text-align: center;
            color: #ffffff;
        }

        .table {
            border-collapse: collapse;
            text-align: center;
            line-height: 30px;
            margin-top: 5px;
        }
    </style>
</head>
<body>
    <form id="form1" runat="server">
        <div style="margin: 5px auto;" id="container">
            <div class="content">
                <strong>推广活动管理页面：</strong>
                <span>
                    <a href="Create.aspx" target="_blank" style="cursor: pointer;">添加推广活动</a>
                    <a href="CreateAD.aspx" target="_blank" style="cursor: pointer;">添加推广连接</a>
                </span>
                <div>
                    <label>城市：</label>
                    <asp:TextBox ID="_ctlEditCity" runat="server"></asp:TextBox>
                    <asp:Button ID="_ctlBtnSearch" runat="server" Text="查询" OnClick="_ctlBtnSearch_Click" />
                </div>
                <div>
                    <label>操作密码：</label>
                    <asp:TextBox ID="_ctlEditPassword" runat="server"></asp:TextBox>
                    <em>删除活动需要在这里填写操作密码</em>
                </div>
                <table id="tab1" border="1" style="width: 100%" class="table">
                    <tr>
                        <th>标题
                        </th>
                        <th>操作
                        </th>
                    </tr>
                    <asp:Repeater ID="_ctlList" runat="server" OnItemCommand="_ctlList_ItemCommand">
                        <HeaderTemplate>
                        </HeaderTemplate>
                        <ItemTemplate>
                            <tr>
                                <td><%#Eval("Title") %></td>
                                <td>
                                    <asp:Button ID="_ctlBtnDelete" CommandName="Delete" CommandArgument='<%#Eval("Id") %>' runat="server" CssClass="apply" Text="删除" /></td>
                            </tr>
                        </ItemTemplate>
                        <FooterTemplate>
                        </FooterTemplate>
                    </asp:Repeater>
                </table>
            </div>
        </div>
    </form>
</body>
</html>
